/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Floors;

import ElementsProperties.Drownable;
import java.util.Vector;

/**
 *
 * @author Snowangelic
 */
public class WaterFloor extends Floor
{

    public WaterFloor(){
        floorImage=EnigmaUtils.ImageLoader.loadImage("./images/water.png");
    }

    @Override
    public void update(long dtime) {
        Vector<Object> targetComponentList=myCase.getComponentList();
        for(Object o : targetComponentList)
            if(o instanceof Drownable){
                Drownable o2= (Drownable) o;
                o2.drown();
            }
        
    }
}
